<script setup lang="ts">
const props: any = defineProps<{
    ujt?: any;
    asaidata: any;
    formdata: any;
    formkey: any;
}>();
const { $fn } = props.ujt;
</script>

<template>
    <AsaiFormLabel
        :ujt="ujt"
        :asaidata="asaidata"
        :formdata="formdata"
        :formkey="formkey"
    >
        <select v-model="props.formdata[formkey]">
            <option
                v-for="item in Object.entries(
                    (props.asaidata?.lang &&
                        props.asaidata?.lang[formkey + 'data']) ||
                        $fn.lg(asaidata?.rule?.[formkey]?.data) ||
                        {}
                )"
                :key="item[0]"
                :value="
                    item[0] === 'asai'
                        ? undefined
                        : props.asaidata.rule?.[formkey]?.type == 'number'
                        ? +item[0]
                        : item[0]
                "
            >
                {{ item[1] }}
            </option>
        </select>
    </AsaiFormLabel>
</template>

<style scoped lang="scss"></style>
